# RESTful DDS is a prototyping effort to demonstrate how DDS could be combined
# with HTTP clients, extending the realm of pub/sub distribution to true wide
# area networking.
#
# Copyright (C) 2009 PrismTech Ltd.
# reinier.torenbeek@gmail.com
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License Version 3 dated 29 June 2007, as published by the
# Free Software Foundation.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with restful-dds; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

DEL_DIR="rm -rf"

GEN_DIR=generated
OBJ_DIR=obj
LIB_DIR=lib

SERVICE_GEN_DIR=$GEN_DIR
SERVICE_OBJ_DIR=$OBJ_DIR
SERVICE_LIB_DIR=$LIB_DIR

echo Cleaning up RESTful service
echo Cleaning compiled classes
$DEL_DIR $SERVICE_OBJ_DIR
echo Cleaning jars
$DEL_DIR $SERVICE_LIB_DIR
echo Cleaning generated source code
$DEL_DIR $SERVICE_GEN_DIR

TUTORIAL_DIR=Tutorial
echo Cleaning OpenSplice Tutorial 
$DEL_DIR $TUTORIAL_DIR

BATTLESHIP_NAME=battleship
WWW_DIR=www
WEBAPP_DIR=displaywebapp

BATTLESHIP_DIR=demos/$BATTLESHIP_NAME
BATTLESHIP_GEN_DIR=$BATTLESHIP_DIR/$GEN_DIR
BATTLESHIP_OBJ_DIR=$BATTLESHIP_DIR/$OBJ_DIR
BATTLESHIP_LIB_DIR=$BATTLESHIP_DIR/$LIB_DIR
BATTLESHIP_WWW_DIR=$BATTLESHIP_DIR/$WWW_DIR
BATTLESHIP_WEBAPP_DIR=$BATTLESHIP_WWW_DIR/$WEBAPP_DIR

echo Cleaning up Battleship demo
echo Cleaning compiled classes
$DEL_DIR $BATTLESHIP_OBJ_DIR
echo Cleaning jars
$DEL_DIR $BATTLESHIP_LIB_DIR
echo Cleaning generated source code
$DEL_DIR $BATTLESHIP_GEN_DIR
echo Cleaning generated Web Application
$DEL_DIR $BATTLESHIP_WEBAPP_DIR
